

import 'package:spring_dict/Entities/DictItem.dart';

class SearchResponse {
  String code;
  List<DictItem> items;

  SearchResponse({this.code = "", this.items});

  factory SearchResponse.fromJson(Map<String, dynamic> json){
    return SearchResponse(
      code: json["code"],
      items: (json["items"] as List<dynamic>).map((item) => DictItem.fromJson(item)).toList()
    );
  }
}

